home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / linux.howto.installation < prev    next >
Encoding:
Internet Message Format  |  1994-04-26  |  54.4 KB

  1. Subject: Linux Installation HOWTO
  2. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.os.linux.admin,news.answers,comp.answers
  3. From: mdw@sunsite.unc.edu (Matt Welsh)
  4. Date: Mon, 25 Apr 1994 19:46:14 GMT
  5.  
  6. Archive-name: linux/howto/installation
  7. Last-modified: 23 Apr 94
  8.  
  9.   The Linux Installation HOWTO
  10.   by Matt Welsh, mdw@sunsite.unc.edu
  11.   v2.3, 23 April 1994
  12.  
  13.   This  document describes how to obtain and install the Linux software,
  14.   focusing on the popular Slackware distribution. It is the first  docu-
  15.   ment which a new Linux user should read to get started.
  16.  
  17.   1.  Introduction
  18.  
  19.   Linux  is  a freely-distributable implementation of UNIX for 80386 and
  20.   80486 machines. It supports a wide  range  of  software,  including  X
  21.   Windows,  Emacs,  TCP/IP networking (including SLIP), the works.  This
  22.   document assumes that you have heard of and know about Linux, and just
  23.   want to sit down and install it.
  24.  
  25.  
  26.  
  27.   1.1.  Other sources of information
  28.  
  29.   If  you have never heard of Linux before, there are several sources of
  30.   basic information about the system. One is the Linux Frequently  Asked
  31.   Questions          list          (FAQ),         available         from
  32.   sunsite.unc.edu:/pub/Linux/docs/FAQ.  This  document   contains   many
  33.   common  questions  (and  answers!) about Linux---it is a ``must read''
  34.   for new users.
  35.  
  36.   In the directory /pub/Linux/docs  on  sunsite.unc.edu  you'll  find  a
  37.   number  of other documents about Linux, including the Linux INFO-SHEET
  38.   and META-FAQ, both of which you should read.  Also take a look at  the
  39.   USENET newsgroups comp.os.linux.help and comp.os.linux.announce.
  40.  
  41.   Another  source  of  online  Linux  documentation  is  the Linux HOWTO
  42.   archive, on  sunsite.unc.edu:/pub/Linux/docs/HOWTO.  The  file  HOWTO-
  43.   INDEX in that directory explains what Linux HOWTOs are available.
  44.  
  45.   The  Linux Documentation Project is writing a set of manuals and books
  46.   about Linux, all of which are freely distributable on  the  net.   The
  47.   directory  /pub/Linux/docs/LDP on sunsite.unc.edu contains the current
  48.   set of LDP manuals.
  49.  
  50.   The book ``Linux Installation and  Getting  Started''  is  a  complete
  51.   guide  to  getting  and  installing  Linux,  as well as how to use the
  52.   system once you've installed it. It contains a  complete  tutorial  to
  53.   using  and  running  the  system,  and  much  more information than is
  54.   contained here. This HOWTO is simply a condensation  of  some  of  the
  55.   most   important  information  in  that  book.  You  can  get  ``Linux
  56.   Installation   and   Getting   Started''   from   sunsite.unc.edu   in
  57.   /pub/Linux/docs/LDP/install-guide.   The  README  file there describes
  58.   how you can order a printed copy of the book (about 180 pages).
  59.  
  60.  
  61.  
  62.   1.2.  New versions of this document
  63.  
  64.   New versions of the Linux  Installation  HOWTO  will  be  periodically
  65.   posted  to  comp.os.linux.announce,  comp.os.linux,  and news.answers.
  66.   They will also be uploaded  to  various  Linux  FTP  sites,  including
  67.   sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  68.  
  69.  
  70.  
  71.   1.3.  Feedback
  72.  
  73.   If  you  have  questions  or comments about this document, please feel
  74.   free to  mail  Matt  Welsh,  at  mdw@sunsite.unc.edu.  I  welcome  any
  75.   suggestions,  criticism, or postcards. If you find a mistake with this
  76.   document, please let me know so I can correct it in the next  version.
  77.   Thanks.
  78.  
  79.  
  80.   2.  Hardware Requirements
  81.  
  82.   What  kind  of system is needed to run Linux? This is a good question;
  83.   the actual hardware requirements for the system  change  periodically.
  84.   The  Linux  Hardware-HOWTO  gives a (more or less) complete listing of
  85.   hardware supported by Linux. The  Linux  INFO-SHEET  provides  another
  86.   list.
  87.  
  88.   At  the  very  least,  a  hardware  configuration  that looks like the
  89.   following is required:
  90.  
  91.   Any ISA, EISA or VESA  Local  Bus  80386  or  80486  system  will  do.
  92.   Currently,  the  MicroChannel  (MCA)  architecture  (found on IBM PS/2
  93.   machines) is not supported.  Any CPU from the 386SX to the 486DX2 will
  94.   work.  You do not need a math coprocessor, although it is nice to have
  95.   one.
  96.  
  97.   You need at least 4 megabytes of memory in your machine.  Technically,
  98.   Linux  will  run with only 2 megs, but most installations and software
  99.   require 4. The more memory you have, the happier you'll be. I  suggest
  100.   8 or 16 megabytes if you're planning to use X-Windows.
  101.  
  102.   Of  course,  you'll  need  a  hard  drive  and  an  AT-standard  drive
  103.   controller. All MFM, RLL, and IDE drives and controllers should  work.
  104.   Many  SCSI  drives and adaptors are supported as well; the Linux SCSI-
  105.   HOWTO contains more information on SCSI.
  106.  
  107.   Linux can actually run on a single 5.25" HD floppy,  but  that's  only
  108.   useful for installation and maintenance.
  109.  
  110.   Free  space  on your hard drive is needed as well. The amount of space
  111.   needed depends  on  how  much  software  you  plan  to  install.  Most
  112.   installations  require  somewhere  in  the  ballpark of 40 to 80 megs.
  113.   This includes space for the software, swap space (used as virtual  RAM
  114.   on your machine), and free space for users, and so on.
  115.  
  116.   It's  conceivable that you could run a minimal Linux system in 10 megs
  117.   or less, and it's conceivable that you could use well over 100 megs or
  118.   more  for  all  of  your  Linux  software.  The  amount varies greatly
  119.   depending on the amount of software you install and how much space you
  120.   require. More about this later.
  121.  
  122.   Linux  will  co-exist  with  other  operating systems, such as MS-DOS,
  123.   Microsoft Windows, or OS/2, on your hard drive. (In fact you can  even
  124.   access  MS-DOS  files  and  run  some MS-DOS programs from Linux.)  In
  125.   other words, when partitioning your drive for Linux,  MS-DOS  or  OS/2
  126.   live  on  their  own partitions, and Linux exists on its own. We'll go
  127.   into more detail later.
  128.  
  129.   You do NOT need to be running MS-DOS, OS/2,  or  any  other  operating
  130.   system  to  use  Linux.  Linux  is a completely different, stand-alone
  131.   operating system and does not rely on other OS's for installation  and
  132.   use.
  133.  
  134.   You  also  need a Hercules, CGA, EGA, VGA, or Super VGA video card and
  135.   monitor.  In general, if your video card and monitor work under MS-DOS
  136.   then  it  should  work  under  Linux.  However,  if  you wish to run X
  137.   Windows, there are other restrictions on the supported video hardware.
  138.   The  Linux XFree86-HOWTO contains more information about running X and
  139.   its requirements.
  140.  
  141.   In all, the minimal setup for Linux is not much more than is  required
  142.   for most MS-DOS or MS Windows systems sold today. If you have a 386 or
  143.   486 with at least 4 megs of RAM, then you'll be happy  running  Linux.
  144.   Linux does not require huge amounts of diskspace, memory, or processor
  145.   speed. I (used to) run Linux on a 386/16 MHz (the slowest machine  you
  146.   can get) with 4 megs of RAM, and was quite happy. The more you want to
  147.   do, the  more  memory  (and  faster  processor)  you'll  need.  In  my
  148.   experience  a  486  with  16  megabytes  of  RAM running Linux outdoes
  149.   several models of workstation.
  150.  
  151.  
  152.  
  153.   3.  Getting Linux
  154.  
  155.   In this section we'll cover how to obtain the Linux software.
  156.  
  157.  
  158.   3.1.  Linux Distributions
  159.  
  160.   Before you can install Linux,  you  need  to  decide  on  one  of  the
  161.   ``distributions''  of  Linux  which are available. There is no single,
  162.   standard release of the Linux software---there are many such releases.
  163.   Each  release has its own documentation and installation instructions.
  164.  
  165.   Linux distributions are available both via anonymous FTP and via  mail
  166.   order on diskette, tape, and CD-ROM. The Linux Distribution HOWTO (see
  167.   sunsite.unc.edu in the file  /pub/Linux/docs/HOWTO/Distribution-HOWTO)
  168.   includes a list of many Linux distributions available via FTP and mail
  169.   order.
  170.  
  171.   The  release  of  Linux  covered  in  this  HOWTO  is  the   Slackware
  172.   distribution,      maintained     by     Patrick     J.     Volkerding
  173.   (volkerdi@mhd1.moorhead.msus.edu). It  is  one  of  the  most  popular
  174.   distributions  available;  it  is  very up-to-date and includes a good
  175.   amount  of  software  including  X-Windows,  TeX,  and  others.    The
  176.   Slackware distribution consists of a number of ``disk sets'', each one
  177.   containing a particular type of software (for example, the d disk  set
  178.   contains  development  tools  such as the gcc compiler, and so forth).
  179.   You can elect to install whatever disk sets you like, and  can  easily
  180.   install new ones later.
  181.  
  182.   Slackware  is  also easy to install; it is very self-explanatory.  (So
  183.   self-explanatory, in fact, that this HOWTO may not be necessary.)
  184.  
  185.   The version of Slackware described here is 1.2.0, of  22  March  1994.
  186.   Installation  of later versions of Slackware should be very similar to
  187.   the information given here.
  188.  
  189.   Information on other releases can be found in the  Linux  Installation
  190.   and  Getting  Started  manual  from  the  LDP. You can also find other
  191.   releases    of    Linux    on    various    FTP    sites,    including
  192.   sunsite.unc.edu:/pub/Linux/distributions  See  the  Distribution-HOWTO
  193.   (mentioned above) for details.
  194.  
  195.   The instructions here should be general enough  to  be  applicable  to
  196.   releases  other  than  Slackware. I hate to be biased towards a single
  197.   release, but I don't have time to keep up with them all! And Slackware
  198.   appears to have what most Linux users are looking for.
  199.  
  200.  
  201.  
  202.   3.2.  Slackware Space Requirements
  203.  
  204.   Unfortunately,   Slackware  does  not  maintain  a  complete  list  of
  205.   diskspace requirements  for  each  disk  set.  You  need  at  least  7
  206.   megabytes to install just the A series of disks; a very rough estimate
  207.   of the required diskspace would be 2 or 2.5 megabytes per disk.
  208.  
  209.   The following disk sets are available:
  210.  
  211.      A  The base system. Enough to get up and running and have elvis and
  212.         comm  programs available. Based around the 1.0 Linux kernel, and
  213.         the new filesystem standard (FSSTND).
  214.  
  215.         These disks are known to fit on 1.2M disks, although the rest of
  216.         Slackware  won't.  If you have only a 1.2M floppy, you can still
  217.         install the base system,  download  other  disks  you  want  and
  218.         install them from your hard drive.
  219.  
  220.  
  221.      AP Various  applications  and  add  ons,  such as the manual pages,
  222.         groff, ispell (GNU and international versions), term, joe, jove,
  223.         ghostscript, sc, bc, and the quota patches.
  224.  
  225.  
  226.      D  Program  development.  GCC/G++/Objective  C 2.5.8, make (GNU and
  227.         BSD), byacc and GNU bison, flex, the 4.5.19  C  libraries,  gdb,
  228.         kernel  source  for  1.0, SVGAlib, ncurses, clisp, f2c, p2c, m4,
  229.         perl, rcs.
  230.  
  231.  
  232.      E  GNU Emacs 19.22.
  233.  
  234.  
  235.      F  A collection of FAQs and other documentation.
  236.  
  237.  
  238.      I  Info pages for GNU software. Documentation for various  programs
  239.         readable by info or Emacs.
  240.  
  241.  
  242.      N  Networking. TCP/IP, UUCP, mailx, dip, deliver, elm, pine, smail,
  243.         cnews, nn, tin, trn.
  244.  
  245.  
  246.      OOP
  247.         Object  Oriented  Programming.  GNU  Smalltalk  1.1.1,  and  the
  248.         Smalltalk Interface to X. (STIX)
  249.  
  250.  
  251.      TCL
  252.         Tcl, Tk, TclX, blt, itcl.
  253.  
  254.  
  255.      Y  Games. The BSD games collection, and Tetris for terminals.
  256.  
  257.  
  258.      X  The  base  XFree86 2.0 system, with libXpm, fvwm 1.20, and xlock
  259.         added.
  260.  
  261.  
  262.      XAP
  263.         X applications: X11 ghostscript, libgr13, seyon, workman, xfile-
  264.         manager,  xv 3.00, GNU chess and xboard, xfm 1.2, ghostview, and
  265.         various X games.
  266.  
  267.  
  268.      XD X11 program development. X11 libraries, server linkkit, PEX sup-
  269.         port.
  270.  
  271.  
  272.  
  273.      XV Xview  3.2 release 5. XView libraries, and the Open Look virtual
  274.         and non-virtual window managers.
  275.  
  276.  
  277.      IV Interviews libraries, include files, and the doc and idraw apps.
  278.         These  run unreasonably slow on my machine, but they might still
  279.         be worth looking at.
  280.  
  281.  
  282.      OI ParcPlace's Object Builder 2.0 and Object Interface Library 4.0,
  283.         generously  made available for Linux developers according to the
  284.         terms in the "copying" notice found in these directories.
  285.  
  286.  
  287.      T  TeX support. Since many people have asked about TeX, I  borrowed
  288.         the  3  TeX  disks  from  SLS and went through them changing the
  289.         filesystem structure somewhat and fixing  permissions.  You  can
  290.         take  this  as a sign that Slackware TeX support may continue to
  291.         improve.
  292.  
  293.   You must get the ``a'' disk set; the rest are optional.  I suggest  at
  294.   least  installing  the  a, ap, and d sets, as well as the x set if you
  295.   plan to run X Windows.
  296.  
  297.  
  298.   3.3.  Getting Slackware via Mail Order
  299.  
  300.   Slackware is available for free from the Internet, as well as via mail
  301.   order  (if  you  don't have Internet access, or don't want to take the
  302.   time to download it yourself).  The  next  section  describes  how  to
  303.   download Slackware from the Internet.
  304.  
  305.   The  various  mail  order  distributors for Slackware (and other Linux
  306.   distributions) are  listed  in  the  Linux  Distribution  HOWTO,  from
  307.   sunsite.unc.edu in the directory /pub/Linux/docs/HOWTO.
  308.  
  309.  
  310.   3.4.  Getting Slackware from the Internet
  311.  
  312.   The Slackware release of Linux may be found on any number of FTP sites
  313.   worldwide. The Linux META-FAQ lists several of the Linux FTP sites; we
  314.   suggest that you try to find the software on the FTP site nearest you,
  315.   to reduce net traffic. However, two of the major Linux FTP  sites  are
  316.   sunsite.unc.edu and tsx-11.mit.edu.
  317.  
  318.   The Slackware release may be found on the following FTP sites:
  319.  
  320.   o  sunsite.unc.edu:/pub/Linux/distributions/slackware
  321.  
  322.   o  tsx-11.mit.edu:/pub/linux/packages/slackware
  323.  
  324.   o  ftp.cdrom.com:/pub/linux/slackware
  325.  
  326.      ftp.cdrom.com is Slackware's home site.
  327.  
  328.  
  329.   3.4.1.  Downloading the files
  330.  
  331.   You  need  to  download  the following files from the FTP sites listed
  332.   above. Make sure that you use binary mode when FTPing them!
  333.  
  334.  
  335.   o  The various README files, as well as  SLACKWARE_FAQ.   Be  sure  to
  336.      read  these files before attempting to install the software, to get
  337.      any updates or changes to this document.
  338.  
  339.   o  A bootdisk image. This is a file that you will write to a floppy to
  340.      create  the  Slackware  boot disk. If you have a 1.44 megabyte boot
  341.      floppy (3.5"), look in the directory install/1_44meg/bootdisks.  If
  342.      you  have a 1.2 megabyte boot floppy (5.25"), look in the directory
  343.      install/1_2meg/bootdisks.  The README files  in  these  directories
  344.      describes what the files are.
  345.  
  346.      You need one of the following files:
  347.  
  348.   o  bare.gz.  This  is  a  boot  floppy  that  has  only IDE hard drive
  349.      drivers. (No SCSI, CD-ROM, or networking support.)  Use this if you
  350.      only  have  an  IDE  hard  drive  controller and aren't going to be
  351.      installing over the network or from CD-ROM.
  352.  
  353.   o  xt.gz. This is a boot floppy with IDE and XT hard drive support.
  354.  
  355.   o  cd.gz. Contains IDE hard drive and non-SCSI  CD-ROM  drivers.   Get
  356.      this  if  you're  going  to  be installing from a (non-SCSI) CD-ROM
  357.      (only relevant if you bought a Slackware CD-ROM of some kind).
  358.  
  359.   o  cdscsi.gz. Contains IDE and SCSI hard drive support,  and  non-SCSI
  360.      CD-ROM drivers.
  361.  
  362.  
  363.   o  scsi.gz.  Contains IDE and SCSI hard drive support, and SCSI CD-ROM
  364.      drivers.
  365.  
  366.   o  net.gz. Contains IDE hard drive and TCP/IP networking support.  Get
  367.      this if you are going to install over the network using NFS.
  368.  
  369.   o  scsinet.gz.  Contains  IDE and SCSI hard drive support, SCSI CD-ROM
  370.      drivers, and TCP/IP networking support.  You might want to try this
  371.      one  first;  use  bare.gz or one of the other boot floppies if this
  372.      doesn't work for you.
  373.  
  374.      You need only one of the above bootdisk images,  depending  on  the
  375.      type hardware that you have in your system.
  376.  
  377.      The  issue  here  is  that some hardware drivers conflict with each
  378.      other in strange ways, and instead of attempting to debug  hardware
  379.      problems on your system it's easier to use a boot floppy image with
  380.      only certain drivers enabled. Most  users  should  try  scsi.gz  or
  381.      bare.gz.
  382.  
  383.   o  A rootdisk image. This is a file that you will write to a floppy to
  384.      create the Slackware installation disk. As with the bootdisk image,
  385.      look   in   install/1_44meg/rootdisks  or  install/1_2meg/rootdisks
  386.      depending on the type of boot floppy drive that you have.
  387.  
  388.      You need one of the following files:
  389.  
  390.   o  color144.gz. The menu-based color installation disk  for  1.44  meg
  391.      drives. Most users should use this rootdisk.
  392.  
  393.   o  tty144.gz.  The  terminal-based  installation  disk  for  1.44  meg
  394.      drives. You should use color144.gz, but a few people have  reported
  395.      problems  with  it on their system. If color144.gz doesn't work for
  396.      you, try tty144.gz instead.  It is a bit dated and the installation
  397.      procedure  isn't  identical,  but  it  should  work  if color144.gz
  398.      doesn't.
  399.  
  400.   o  colrlite.gz. The menu-based color installation  disk  for  1.2  meg
  401.      drives.  Some  things have been trimmed off of this disk to make it
  402.      fit on a 1.2 meg floppy, but it should work if you only have a  1.2
  403.      meg drive.
  404.  
  405.   o  tty12.gz.  The terminal-based installation disk for 1.2 meg drives.
  406.      Use this rootdisk if you have a 1.2 meg boot floppy and colrlite.gz
  407.      doesn't work for you.
  408.  
  409.      Again, you need only one of the above rootdisk images, depending on
  410.      the type of boot floppy drive that you have.
  411.  
  412.   o  GZIP.EXE. This is an MS-DOS  executable  of  the  gzip  compression
  413.      program  used  to  compress  the  boot  and rootdisk files (the .gz
  414.      extension on the filenames indicates this). This can  be  found  in
  415.      the install directory.
  416.  
  417.   o  RAWRITE.EXE. This is an MS-DOS program that will write the contents
  418.      of a file (such as the boot and  rootdisk  images)  directly  to  a
  419.      floppy,  without  regard  to  format.  You  will use RAWRITE.EXE to
  420.      create the boot and root  floppies.   This  can  be  found  in  the
  421.      install directory as well.
  422.  
  423.      You  only  need  RAWRITE.EXE and GZIP.EXE if you plan to create the
  424.      boot and root floppies from an MS-DOS system. If you have access to
  425.      a  UNIX workstation with a floppy drive instead, you can create the
  426.      floppies from there, using the dd command.  See the man page for dd
  427.      and ask your local UNIX gurus for assistance.
  428.  
  429.   o  The  files  in the directories a1, a2, and a3.  These files make up
  430.      the  ``a''  disk  set  of  the  Slackware  distribution.  They  are
  431.      required.  Later,  you will copy these files to MS-DOS floppies for
  432.      installation (or, you can install from your hard drive). Therefore,
  433.      when  you  download these files, keep them in separate directories;
  434.      don't mix the a1 files with the a2 files, and so on.
  435.  
  436.      Be sure that you get the files without periods in the filenames  as
  437.      well.  That  is,  within FTP, use the command ``mget *'' instead of
  438.      ``mget *.*''.
  439.  
  440.   o  The files in the directories ap1, ap2, etc., depending on what disk
  441.      sets  you  are  installing.  For example, if you are installing the
  442.      ``x'' disk series, get the files in the directories x1 through  x5.
  443.      As  with  the  ``a''  disk set, above, be sure to keep the files in
  444.      separate directories when you download them.
  445.  
  446.  
  447.   3.4.2.  Installation methods
  448.  
  449.   Slackware provides several different means of installing the software.
  450.   The  most  popular is installing from an MS-DOS partition on your hard
  451.   drive; the other is to install from a set of MS-DOS  floppies  created
  452.   from the disk sets that you downloaded.
  453.  
  454.   You  can  also install Slackware from an NFS-mounted filesystem over a
  455.   TCP/IP network. This is somewhat involved, however, and  a  discussion
  456.   of  how  to  do this is out of the range of this document. If you need
  457.   help, ask your local UNIX gurus how to set up your system to mount  an
  458.   NFS filesystem which you can install Slackware from. (For this, you'll
  459.   need another system on the network which has Slackware available on an
  460.   exported filesystem.)
  461.  
  462.   First  we'll  describe  how  to create the boot and root floppies, and
  463.   then we'll describe how to set things up for either a  hard  drive  or
  464.   floppy installation.
  465.  
  466.  
  467.   3.4.2.1.  Creating the boot and root floppies
  468.  
  469.   You  must  create  floppies from the bootdisk and rootdisk images that
  470.   you downloaded, no matter what type of installation you will be doing.
  471.   This  is  where the MS-DOS programs GZIP.EXE and RAWRITE.EXE come into
  472.   play.
  473.  
  474.   First you must uncompress  the  bootdisk  and  rootdisk  images  using
  475.   GZIP.EXE  (on  an  MS-DOS  system,  of course). For example, if you're
  476.   using the bare.gz bootdisk image, issue the MS-DOS command:
  477.  
  478.        C:\> GZIP -D BARE.GZ
  479.  
  480.  
  481.   which will uncompress bare.gz and leave you with the  file  bare.  You
  482.   must  similarly uncompress the rootdisk image. For example, if you are
  483.   using the rootdisk color144.gz, issue the command:
  484.  
  485.        C:\> GZIP -D COLOR144.GZ
  486.  
  487.  
  488.   which will uncompress the file and leave you with color144.
  489.  
  490.   Next, you must have two high-density MS-DOS formatted floppies.  (They
  491.   must be of the same type; that is, if your boot floppy drive is a 3.5"
  492.   drive, both floppies must be high-density 3.5" disks.)  You  will  use
  493.   RAWRITE.EXE to write the boot and rootdisk images to the floppies.
  494.  
  495.   For example, if you're using the bare.gz bootdisk, use the command:
  496.  
  497.        C:\> RAWRITE
  498.  
  499.  
  500.   Answer  the  prompts  for the name of the file to write (such as BARE-
  501.   BOOT) and the floppy to write it to (such as A:).  RAWRITE  will  copy
  502.   the file, block-by-block, directly to the floppy. Also use RAWRITE for
  503.   the root disk image (such as COLOR144). When you're done, you'll  have
  504.   two  floppies:  one containing the boot disk, the other containing the
  505.   root disk. Note that these two floppies will no longer be readable  by
  506.   MS-DOS (they are ``Linux format'' floppies, in some sense).
  507.  
  508.   Be sure that you're using brand-new, error-free floppies. The floppies
  509.   must have no bad blocks on them.
  510.  
  511.   Note that you do not need to be running MS-DOS  in  order  to  install
  512.   Slackware.  However, running MS-DOS makes it easier to create the boot
  513.   and root floppies, and it makes it easier to install the software  (as
  514.   you  can install directly from an MS-DOS partition on your system). If
  515.   you are not running MS-DOS on your system, you can use someone  else's
  516.   MS-DOS system just to create the floppies, and install from there.
  517.  
  518.   It  is  not  necessary to use GZIP.EXE and RAWRITE.EXE under MS-DOS to
  519.   create the boot and root floppies, either. You can use the gzip and dd
  520.   commands  on  a  UNIX  system to do the same job.  (For this, you will
  521.   need a UNIX workstation with a floppy drive, of course.) For  example,
  522.   on  a  Sun  workstation with the floppy drive on device /dev/rfd0, you
  523.   can use the commands:
  524.  
  525.  
  526.        $ gunzip bare.gz
  527.        $ dd if=bare of=/dev/rfd0 obs=18k
  528.  
  529.  
  530.  
  531.  
  532.   You must provide the appropriate block size argument  (the  obs  argu-
  533.   ment) on some workstations (e.g., Suns) or this will fail. If you have
  534.   problems the man page for dd will be instructive.
  535.  
  536.  
  537.   3.4.2.2.  Preparing for hard drive installation
  538.  
  539.   If you're planning on installing the Slackware software directly  from
  540.   the  hard  drive (which is much faster and more reliable than a floppy
  541.   installation), you will need an MS-DOS partition on  the  system  that
  542.   you're  installing Slackware to. (That is, you must already be running
  543.   MS-DOS on the system.)
  544.  
  545.   To prepare for hard drive installation, simply create a  directory  on
  546.   the hard drive to store the Slackware files. For example,
  547.  
  548.        C:\> MKDIR SLACKWAR
  549.  
  550.  
  551.   will  create  the  directory  C:\SLACKWAR to hold the Slackware files.
  552.   Under this directory, you should create the subdirectories A1, A2, and
  553.   so  on,  for  each disk set that you downloaded. All of the files from
  554.   the A1 disk should go into the directory SLACKWAR\A1, and so forth.
  555.  
  556.   Now you're ready to go on  and  install  the  software;  skip  to  the
  557.   section ``Installing the Software''.
  558.  
  559.  
  560.   3.4.2.3.  Preparing for floppy installation
  561.  
  562.   If  you  wish  to  install Slackware from floppies instead of the hard
  563.   drive, you'll need to have one blank, MS-DOS formatted floppy for each
  564.   Slackware  disk  that you downloaded. These disks must be high-density
  565.   format.
  566.  
  567.   The A disk set (disks A1 through A3)  may  be  either  3.5"  or  5.25"
  568.   floppies.  However,  the  rest  of  the  disk sets must be 3.5" disks.
  569.   Therefore, if you only have a  5.25"  floppy  drive,  you'll  need  to
  570.   borrow  a  3.5" drive from someone in order to install disk sets other
  571.   than A. (Or, you can install from the hard drive, as explained in  the
  572.   previous section.)
  573.  
  574.   To make the disks, simply copy the files from each Slackware directory
  575.   onto an MS-DOS formatted floppy, using the MS-DOS COPY command. As so:
  576.  
  577.        C:\> COPY A1\*.* A:
  578.  
  579.  
  580.   will  copy the contents of the A1 disk to the floppy in drive A:.  You
  581.   should repeat this for each disk that you downloaded.
  582.  
  583.   You do not need to modify or uncompress the files on the disks in  any
  584.   way;  you  merely  need to copy them to MS-DOS floppies. The Slackware
  585.   installation procedure takes care of uncompressing the files for  you.
  586.  
  587.  
  588.   4.  Installing the Software
  589.  
  590.   In  this  section  we'll  describe  how  to  prepare  your  system for
  591.   installing Slackware, and finally how to go about installing it.
  592.  
  593.  
  594.   4.1.  Repartitioning
  595.  
  596.   On most systems, the hard drive is already dedicated to partitions for
  597.   MS-DOS, OS/2, and so on.  You need to resize these partitions in order
  598.   to make space for Linux.
  599.  
  600.   A partition is just a section of  the  hard  drive  set  aside  for  a
  601.   particular operating system to use. If you only have MS-DOS installed,
  602.   your hard drive probably has just one partition, entirely for  MS-DOS.
  603.   To  use  Linux, however, you'll need to repartition the drive, so that
  604.   you have one partition for MS-DOS, and one (or more) for Linux.
  605.  
  606.   Partitions come in three  flavors:  primary,  extended,  and  logical.
  607.   Briefly,  primary  partitions  are  one of the four main partitions on
  608.   your drive. However, if you wish to have more than four partitions per
  609.   drive,  you  need  to  create an extended partition, which can contain
  610.   many logical partitions.  You don't store data directly on an extended
  611.   partition---it  is  used  only  as a container for logical partitions.
  612.   Data is stored on either primary or logical partitions.
  613.  
  614.   The problem with resizing partitions is that there is no way to do  it
  615.   (easily)  without  deleting  the data on those partitions.  Therefore,
  616.   you  will  need  to  make  a  full  backup  of  your   system   before
  617.   repartitioning.  In  order to resize a partition, we simply delete the
  618.   partition(s), and re-create them with smaller sizes.
  619.  
  620.   Note that you can easily install Linux on the  second  drive  on  your
  621.   system  (known  as  D:  to MS-DOS). You simply specify the appropriate
  622.   device  name,  either  /dev/hdb  or  /dev/sdb,  when  creating   Linux
  623.   partitions. This is described in detail below.
  624.  
  625.   NOTE:  There is a non-destructive disk repartitioner available for MS-
  626.   DOS,  called  FIPS.  Look  on   sunsite.unc.edu   in   the   directory
  627.   /pub/Linux/system/Install. With FIPS, a disk optimizer (such as Norton
  628.   Speed Disk), and a little bit of luck, you should be  able  to  resize
  629.   MS-DOS partitions without destroying the data on them.
  630.  
  631.   If  you're  not  using  FIPS,  however,  the  classic  way  to  modify
  632.   partitions is with the program FDISK. For example, let's say that  you
  633.   have an 80 meg hard drive, dedicated to MS-DOS. You'd like to split it
  634.   in half---40 megs for MS-DOS and 40 megs for Linux.  In  order  to  do
  635.   this,  you  need  to  run FDISK under MS-DOS, delete the 80 meg MS-DOS
  636.   partition, and re-create a 40 meg MS-DOS partition in its  place.  You
  637.   can  then  format the new partition and reinstall your MS-DOS software
  638.   from backups.
  639.  
  640.   Use of MS-DOS FDISK should be self-explanatory. You'll need to make  a
  641.   full  backup  of  your  system, and have a bootable MS-DOS floppy with
  642.   utilities such as FDISK.EXE and FORMAT.COM installed (the original MS-
  643.   DOS  installation  disks  are the best thing to use for this). Booting
  644.   from the floppy, you run FDISK on your hard drive, and  use  the  menu
  645.   options to delete your current MS-DOS partition, and then re-create it
  646.   with a smaller size. You can then re-install the MS-DOS software  from
  647.   backup.
  648.  
  649.   Note  that  MS-DOS FDISK will give you an option to create a ``logical
  650.   DOS drive''. A logical DOS drive is just a logical partition  on  your
  651.   hard  drive.  You  can  install  Linux on a logical partition, but you
  652.   don't want to create that logical partition with MS-DOS fdisk. So,  if
  653.   you're  currently using a logical DOS drive, and want to install Linux
  654.   in its place, you should delete the logical drive with  MS-DOS  FDISK,
  655.   and (later) create a logical partition for Linux in its place.
  656.  
  657.   The mechanism used to repartition for OS/2 and other operating systems
  658.   is similar. See the documentation  for  those  operating  systems  for
  659.   details.
  660.  
  661.  
  662.  
  663.   4.2.  Creating partitions for Linux
  664.  
  665.   After  repartitioning  your  drive,  you need to create partitions for
  666.   Linux. Linux requires at least one partition, for the root filesystem,
  667.   which  will  hold  the  Linux  software  itself.   You may wish to use
  668.   additional partitions for other filesystems, as  discussed  below.  In
  669.   addition, most users set aside a swap partition, to be used as virtual
  670.   RAM on your machine.  If you have 4 megabytes of RAM or less,  a  swap
  671.   partition  is  required  to  install  the  software.  It  is  strongly
  672.   recommended that you have a swap partition anyway, unless you have  16
  673.   megabytes or more of physical RAM.
  674.  
  675.   In  order  to  create  your Linux partitions, first boot the Slackware
  676.   bootdisk. After the system boots, you will see the message:
  677.  
  678.  
  679.        Please remove the boot kernel disk from your floppy drive,
  680.        insert a disk to be loaded into the ramdisk, and press
  681.        [enter] to continue.
  682.  
  683.  
  684.  
  685.  
  686.   At this point you should remove the bootdisk from the drive and insert
  687.   the rootdisk. Then press enter to go on.
  688.  
  689.   The  rootdisk  will be loaded into memory, and you should be presented
  690.   with a login prompt. Login as ``root''.
  691.  
  692.  
  693.        darkstar login: root
  694.        #
  695.  
  696.  
  697.  
  698.  
  699.   Note to IBM PS/1, ValuePoint, and ThinkPad Users: If you  use  an  IBM
  700.   PS/1,  ValuePoint,  or ThinkPad machine, the system will not recognize
  701.   your hard drive when you boot the Slackware bootdisk. This is  because
  702.   these machines do not store drive geometry information in the CMOS (as
  703.   they should) and you  have  to  specify  the  geometry  by  hand  when
  704.   booting.  (Later  you  can  get  around  this  by  installing the LILO
  705.   software, which allows you to boot Linux from the hard drive.)
  706.  
  707.   You must use a bootdisk other than  ``bare''  for  this  to  work.   I
  708.   suggest  using scsi.gz. While booting the bootdisk, hold down the left
  709.   shift key. You will be presented with a boot menu which will  describe
  710.   how  to  specify  your  hard  drive  geometry  (that is, the number of
  711.   cylinders, heads, and sectors per track) for your drive using  the  hd
  712.   boot  option. You can get information on your drive geometry from your
  713.   hard drive manual or by running MS-DOS FDISK.
  714.  
  715.  
  716.   4.2.1.  Using fdisk
  717.  
  718.   To create partitions, you'll  use  the  Linux  fdisk  program.   After
  719.   logging in as root, run the command
  720.  
  721.        fdisk <drive>
  722.  
  723.  
  724.   where  <drive>  is the name of the drive that you wish to create Linux
  725.   partitions on. Hard drive device names are:
  726.  
  727.   o  /dev/hda First IDE drive
  728.  
  729.   o  /dev/hdb Second IDE drive
  730.  
  731.   o  /dev/sda First SCSI drive
  732.  
  733.   o  /dev/sdb Second SCSI drive
  734.  
  735.      and so on. For example, to create Linux  partitions  on  the  first
  736.      SCSI drive in your system, use the command
  737.  
  738.        fdisk /dev/sda
  739.  
  740.  
  741.   If you use fdisk without an argument, it will assume /dev/hda.
  742.  
  743.   To  create Linux partitions on the second drive on your system, simply
  744.   specify either /dev/hdb or /dev/sdb when running fdisk.
  745.  
  746.   Use of fdisk is  simple.  The  command  ``p''  displays  your  current
  747.   partition  table.  ``n''  creates a new partition, and ``d'' deletes a
  748.   partition.
  749.  
  750.   To Linux, partitions are given a name based on the  drive  which  they
  751.   belong  to. For example, the first partition on /dev/hda is /dev/hda1,
  752.   the second is /dev/hda2, and so on.
  753.  
  754.   NOTE: You should not create or delete partitions for operating systems
  755.   other than Linux with Linux fdisk. That is, don't create or delete MS-
  756.   DOS partitions with this version of fdisk;  use  MS-DOS's  version  of
  757.   FDISK  instead.  If  you  try  to  create MS-DOS partitions with Linux
  758.   fdisk, chances are MS-DOS will not recognize  the  partition  and  not
  759.   boot correctly.
  760.  
  761.   Here's  an  example  of  using  fdisk.  Here,  we have a single MS-DOS
  762.   partition using 61693 blocks on the drive, and the rest of  the  drive
  763.   is  free  for Linux. (Under Linux, one block is 1024 bytes. Therefore,
  764.   61693 blocks is  about  61  megabytes.)   We  will  create  two  Linux
  765.   partitions: one for swap, and one for the root filesystem.
  766.  
  767.   First,  we  use  the  ``p''  command  to display the current partition
  768.   table.  As you can see, /dev/hda1 (the first partition on /dev/hda) is
  769.   a DOS partition of 61693 blocks.
  770.  
  771.   ______________________________________________________________________
  772.   Command (m for help):   p
  773.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  774.   Units = cylinders of 608 * 512 bytes
  775.  
  776.        Device Boot  Begin   Start     End  Blocks   Id  System
  777.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  778.  
  779.   Command (m for help):
  780.   ______________________________________________________________________
  781.  
  782.  
  783.  
  784.   Next,  we  use  the ``n'' command to create a new partition. The Linux
  785.   root partition will be 80 megs in size.
  786.  
  787.   ______________________________________________________________________
  788.   Command (m for help):  n
  789.   Command action
  790.       e   extended
  791.       p   primary partition (1-4)
  792.   p
  793.   ______________________________________________________________________
  794.  
  795.  
  796.   A primary partition is simply one of the 4 partitions on  your  drive.
  797.   An extended partition allows you to create multiple logical partitions
  798.   within it; this allows you to go over the four-partition limit on  the
  799.   drive.  In  most  cases, you should only use primary partitions unless
  800.   you need more than 4 partitions on a drive.
  801.   ______________________________________________________________________
  802.   Partition number (1-4): 2
  803.   First cylinder (204-683):  204
  804.   Last cylinder or +size or +sizeM or +sizeK (204-683): +80M
  805.   ______________________________________________________________________
  806.  
  807.  
  808.  
  809.   The first cylinder  should  be  the  cylinder  AFTER  where  the  last
  810.   partition  left off. In this case, /dev/hda1 ended on cylinder 203, so
  811.   we start the new partition at cylinder 204.
  812.  
  813.   As you can see, if we  use  the  notation  ``+80M'',  it  specifies  a
  814.   partition  of  80  megs in size. Likewise, the notation ``+80K'' would
  815.   specify an 80 kilobyte partition, and ``+80'' would specify just an 80
  816.   byte partition.
  817.  
  818.   ______________________________________________________________________
  819.   Warning: Linux cannot currently use 33090 sectors of this partition
  820.   ______________________________________________________________________
  821.  
  822.  
  823.   If  you  see  this warning, you can ignore it. It is left over from an
  824.   old restriction that Linux filesystems could only be 64 megs in  size.
  825.   However,  with  newer  filesystem types, that is no longer the case...
  826.   partitions can now be up to 4 terabytes in size.
  827.  
  828.   Next, we create our 10 megabyte swap partition, /dev/hda3.
  829.  
  830.   ______________________________________________________________________
  831.   Command (m for help): n
  832.   Command action
  833.       e   extended
  834.       p   primary partition (1-4)
  835.   p
  836.  
  837.   Partition number (1-4): 3
  838.   First cylinder (474-683):  474
  839.   Last cylinder or +size or +sizeM or +sizeK (474-683):  +10M
  840.   ______________________________________________________________________
  841.  
  842.  
  843.  
  844.   Again, we display the contents of the  partition  table.  Be  sure  to
  845.   write down the information here, especially the size of each partition
  846.   in blocks. You need this information later.
  847.  
  848.   ______________________________________________________________________
  849.   Command (m for help): p
  850.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  851.   Units = cylinders of 608 * 512 bytes
  852.  
  853.        Device Boot  Begin   Start     End  Blocks   Id  System
  854.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  855.     /dev/hda2         204     204     473   82080   83  Linux native
  856.     /dev/hda3         474     474     507   10336   83  Linux native
  857.   ______________________________________________________________________
  858.  
  859.  
  860.  
  861.   Note that the Linux swap partition (here, /dev/hda3) has type  ``Linux
  862.   native''.  We need to change the type of the swap partition to ``Linux
  863.   swap'' so that the installation program will recognize it  as  a  swap
  864.   partition. In order to do this, use the fdisk ``t'' command:
  865.  
  866.  
  867.   ______________________________________________________________________
  868.   Command (m for help): t
  869.   Partition number (1-4): 3
  870.   Hex code (type L to list codes): 82
  871.   ______________________________________________________________________
  872.  
  873.  
  874.   If  you  use  ``L'' to list the type codes, you'll find that 82 is the
  875.   code corresponding to Linux swap.
  876.  
  877.   To quit fdisk and save the changes to the  partition  table,  use  the
  878.   ``w''  command.  To  quit  fdisk WITHOUT saving changes, use the ``q''
  879.   command.
  880.  
  881.   After quitting fdisk, the system may tell you to reboot to  make  sure
  882.   that  the changes took effect. In general there is no reason to reboot
  883.   after using fdisk---the version of fdisk on the Slackware distribution
  884.   is smart enough to update the partitions without rebooting.
  885.  
  886.  
  887.   4.3.  Preparing the swap space
  888.  
  889.   If  you have 4 megabytes or RAM or less in your machine, you will need
  890.   to create a swap partition (using fdisk) and format it (using  mkswap)
  891.   before you can install the software.
  892.  
  893.   If  you  have  more  than 4 megabytes of RAM, you should only create a
  894.   swap partition (if you want to use one)---the  Slackware  installation
  895.   procedure   will  take  care  of  formatting  and  enabling  the  swap
  896.   partition. So, if you have more than 4 megs of RAM, you can skip  this
  897.   section and go on to the section ``Installing the Software''.
  898.  
  899.   If  you  get  any  ``out  of  memory''  errors during the installation
  900.   procedure you  should  create  a  swap  partition  and  enable  it  as
  901.   described here.
  902.  
  903.   To  prepare  the  swap  space  for use, we use the mkswap command.  It
  904.   takes the form:
  905.  
  906.        mkswap -c <partition> <size>
  907.  
  908.  
  909.   where <partition> is the partition name, such as /dev/hda3, and <size>
  910.   is the size of the partition in blocks.
  911.  
  912.   For  example,  if  you  created  a swap partition on /dev/hda3 of size
  913.   10336 blocks, use the command
  914.  
  915.        mkswap -c /dev/hda3 10336
  916.  
  917.  
  918.   The -c option tells mkswap to check for bad blocks  on  the  partition
  919.   when preparing the swap space. If you see any ``read_intr'' error mes-
  920.   sages during the mkswap operation, this means  that  bad  blocks  were
  921.   found (and flagged). So you can ignore these errors.
  922.  
  923.   To enable swapping on the new device, use the command
  924.  
  925.        swapon <partition>
  926.  
  927.  
  928.   For example, for our swap space on /dev/hda3, we use
  929.  
  930.        swapon /dev/hda3
  931.  
  932.  
  933.   We're now swapping with about 10 megabytes more virtual memory.
  934.  
  935.   You  should execute mkswap and swapon for each swap partition that you
  936.   created (if you decided to create more than one).
  937.  
  938.  
  939.   4.4.  Installing the software
  940.  
  941.   Installing  the  Slackware  release  is  very  simple;   it's   almost
  942.   automatic.  You  use  the  setup  command,  which guides you through a
  943.   series of menus which allow you to specify the means of  installation,
  944.   the  partitions to use, and so forth.  Almost everything is automatic.
  945.  
  946.   Here, we're not going to document  many  of  the  specifics  of  using
  947.   setup,  because  it  changes  from  time  to time. setup is very self-
  948.   explanatory; it contains its own documentation. Just to  give  you  an
  949.   idea   of   what   it's   like,  however,  we'll  describe  what  most
  950.   installations are like using setup.
  951.  
  952.   Before you  begin,  be  sure  that  you  have  a  high-density  MS-DOS
  953.   formatted  floppy  on hand. You will use this floppy to create a Linux
  954.   boot diskette.
  955.  
  956.   After running fdisk (and, perhaps, mkswap and swapon  if  you  have  4
  957.   megs of RAM or less), issue the command
  958.  
  959.        # setup
  960.  
  961.  
  962.   This  will present you with a colourful menu with various options such
  963.   as ``Addswap'' (to set up your swap space), ``Source'' (to specify the
  964.   source  of  the  software  to  install, such as floppy or hard drive),
  965.   ``Target'' (to specify where to install the software), and so on.
  966.  
  967.   In general, you should go through the menu commands in  the  following
  968.   order:
  969.  
  970.   1. Addswap.  If  you  created  a swap partition (using fdisk), use the
  971.      addswap menu option to tell the system about it.  This option  will
  972.      present  you  with a list of possible swap partitions; just type in
  973.      the name of the swap partition(s) that you wish  to  use  (such  as
  974.      /dev/hda3).  The system will then ask you if you want to format the
  975.      swap partition, which you should do unless you already  ran  mkswap
  976.      and  swapon  on  it.  That is, you should format the swap partition
  977.      unless you already formatted and enabled it by hand as described in
  978.      the previous section.
  979.  
  980.   2. Source.  This  menu  option  lets  you  specify  the source for the
  981.      software to install. You can select several means of  installation,
  982.      such  as from floppy or from hard drive. If you are installing from
  983.      floppies, the system will ask you which floppy drive to use. If you
  984.      are  installing  from  hard  drive,  the  system  will ask you what
  985.      partition the files are stored on, and what directory they are  in.
  986.  
  987.      For example, if you are installing from an MS-DOS partition on your
  988.      hard drive,  and  the  Slackware  files  are  under  the  directory
  989.      C:\SLACKWAR,  you  should  enter  the  name of the MS-DOS partition
  990.      (such as  /dev/hda1)  and  the  name  of  the  directory  (such  as
  991.      /slackwar).  Note  that  you  should  use  forward slashes (/), not
  992.      backslashes (\), in the directory name.
  993.  
  994.      There are other means of installation, such as CD-ROM. These should
  995.      be self-explanatory as well.
  996.  
  997.   3. Target.  This  menu  item  lets  you  specify  what partition(s) to
  998.      install the software on. The system will display a list of possible
  999.      partitions.  First  you will be asked to enter the name of the root
  1000.      partition, such as /dev/hda2. You will be  asked  if  you  want  to
  1001.      format  the  partition;  unless  you  are installing on a partition
  1002.      previously formatted for Linux you should do so. You should use the
  1003.      Second Extended Filesystem (ext2fs) type for the partition.
  1004.  
  1005.      You  will  also  be given a chance to use additional partitions for
  1006.      different parts of the directory tree. For example, if you  created
  1007.      a  separate partition for the /usr filesystem, you should enter the
  1008.      name of that partition and the directory  that  it  corresponds  to
  1009.      (/usr) when asked.
  1010.  
  1011.   4. Disksets.  This  option allows you to specify the disksets you wish
  1012.      to install. Use the arrow keys to scroll through the list; pressing
  1013.      the  spacebar  selects or deselects a set. Press return when you're
  1014.      done selecting disk sets.
  1015.  
  1016.      You may wish to only install a minimal system at this time.  That's
  1017.      fine.  Only the A diskset is required. After you have installed the
  1018.      software you may run setup to install other disksets.
  1019.  
  1020.   5. Install. After setting up all of the parameters above, you're ready
  1021.      to install the software. First the system will ask you what type of
  1022.      prompting to use; you should use the  ``normal''  prompting  method
  1023.      (unless  you're  an  expert  and  have  modified  the  installation
  1024.      tagfiles in some way).
  1025.  
  1026.      The system will simply go through each disk  set  and  install  the
  1027.      software. For each software package, a dialog box will be displayed
  1028.      describing the software. Software packages that are  required  will
  1029.      be installed automatically. For optional software packages you will
  1030.      be given the option of either  installing  or  not  installing  the
  1031.      package.  (If  you don't wish to install a certain package now, you
  1032.      can always use setup on your system to install it later).
  1033.  
  1034.      While the software is installing, watch out for error messages that
  1035.      may  be  displayed. The most common error that you're likely to run
  1036.      into is ``device full'', which means that you have run out of space
  1037.      on your Linux partitions. Unfortunately, the Slackware installation
  1038.      procedure is not quite  smart  enough  to  detect  this,  and  will
  1039.      attempt  to continue installing the software regardless. If you get
  1040.      any kind of error messages during the installation  procedure,  you
  1041.      may wish to break out of the installation program (using Ctrl-C) to
  1042.      record them. The only solution for the ``device full''  problem  is
  1043.      to re-create your Linux partitions with different sizes, or attempt
  1044.      to reinstall the software without several of the optional  software
  1045.      packages.
  1046.  
  1047.  
  1048.  
  1049.   4.5.  After installation
  1050.  
  1051.   After  installation  is  complete,  and  if all goes well, you will be
  1052.   given the option of creating a ``standard boot disk'', which  you  can
  1053.   use  to boot your newly-installed Linux system. For this you will need
  1054.   a blank, high-density MS-DOS formatted diskette of the type  that  you
  1055.   boot  with  on your system. Simply insert the disk when prompted and a
  1056.   boot diskette will be created.
  1057.  
  1058.   You will also be given the chance to install LILO on your hard  drive.
  1059.   LILO  (which stands for LInux LOader) is a program that will allow you
  1060.   to boot Linux (as well as other operating  systems,  such  as  MS-DOS)
  1061.   from  your  hard  drive.  If  you  wish  to  do  this, just select the
  1062.   appropriate menu option and follow the prompts.
  1063.  
  1064.  
  1065.   If you are using OS/2's Boot Manager, the menu will include an  option
  1066.   for  configuring  LILO  for use with the Boot Manager, so that you can
  1067.   boot Linux from it.
  1068.  
  1069.   Note that this automated LILO installation procedure is not foolproof;
  1070.   there  are  situations in which this can fail. Be sure that you have a
  1071.   way to boot MS-DOS, Linux, and other  operating  systems  from  floppy
  1072.   before you attempt to install LILO. If the LILO installation fails you
  1073.   will be able to boot your system from floppy and correct the  problem.
  1074.  
  1075.   More information on configuring LILO is given below.
  1076.  
  1077.   The postinstallation procedure will also take you through several menu
  1078.   items allowing you to configure your system. This includes  specifying
  1079.   your  modem  and  mouse device, as well as your time zone. Just follow
  1080.   the menu options.
  1081.  
  1082.  
  1083.   4.6.  Booting your new system
  1084.  
  1085.   If everything went as planned, you should be able to boot  your  Linux
  1086.   boot  floppy  (not  the  Slackware installation floppy, but the floppy
  1087.   created after installing the software). Or, if you installed LILO, you
  1088.   should  be  able to boot from the hard drive.  After booting, login as
  1089.   root. Congratulations! You have your very own Linux system.
  1090.  
  1091.   If you are booting using LILO,  try  holding  down  shift  or  control
  1092.   during  boot.  This  will present you with a boot prompt; press tab to
  1093.   see a list of options. In this way you  can  boot  Linux,  MS-DOS,  or
  1094.   whatever directly from LILO.
  1095.  
  1096.   After  booting  your  system  and logging in as root, one of the first
  1097.   things you should do is create an account for yourself.   The  adduser
  1098.   command may be used for this purpose. For example,
  1099.  
  1100.  
  1101.        # adduser
  1102.        Login to add (^C to quit): ebersol
  1103.        Full Name: Norbert Ebersol
  1104.        GID [100]: 100
  1105.        UID [501]: 501
  1106.        Home Directory [/home/ebersol]: /home/ebersol
  1107.        Shell [/bin/bash]: /bin/bash
  1108.        Password [ebersol]: new.password
  1109.  
  1110.        Information for new user [ebersol]:
  1111.        Home directory: [/home/ebersol]  Shell: [/bin/bash]
  1112.        Password: [new.password]  UID: [502] GID:[100]
  1113.        Is this correct? [y/n]: y
  1114.  
  1115.  
  1116.  
  1117.  
  1118.   adduser  will prompt you for various parameters, such as the username,
  1119.   full name, GID (group ID), UID (user ID), and so on. For the most part
  1120.   you  can use the defaults. If you're unfamiliar with creating users on
  1121.   a UNIX system, I strongly suggest  getting  a  book  on  UNIX  systems
  1122.   administration.  It will help you greatly in setting up and using your
  1123.   new system.
  1124.  
  1125.   You can now login as the new user. You can use the keys Alt-F1 through
  1126.   Alt-F8  to  switch  between  virtual consoles, which will allow you to
  1127.   login multiple times from the console. The passwd command can be  used
  1128.   to  set  the passwords on your new accounts; you should set a password
  1129.   for root and any new users that you create.
  1130.  
  1131.   Also, the hostname of your machine is set at boot  time  in  the  file
  1132.   /etc/rc.d/rc.M.  You  should  edit  this  file (as root) to change the
  1133.   hostname of the machine.  You should edit the lines in this file which
  1134.   run  the commands hostname or hostname_notcp. (The default hostname is
  1135.   darkstar.) You may also wish to edit the domainname commands  in  this
  1136.   file, if you are on a TCP/IP network.
  1137.  
  1138.   Obviously,  there  are many more things to setup and configure. A good
  1139.   book on UNIX systems administration should help. (I suggest  Essential
  1140.   Systems  Administration  from O'Reilly and Associates.)  You will pick
  1141.   these things up as time goes by. You should read various  other  Linux
  1142.   HOWTOs, such as the NET-2-HOWTO and Printing-HOWTO, for information on
  1143.   other configuration tasks.
  1144.  
  1145.   After that, the system is all yours... have fun!
  1146.  
  1147.  
  1148.   5.  Configuring LILO
  1149.  
  1150.   LILO is a boot loader, which can be used to select either  Linux,  MS-
  1151.   DOS,  or some other operating system at boot time. If you install LILO
  1152.   as the primary boot loader, it will  handle  the  first-stage  booting
  1153.   process  for  all  operating systems on your drive. This works well if
  1154.   MS-DOS is the only other operating system  that  you  have  installed.
  1155.   However,  you  might be running OS/2, which has it's own Boot Manager.
  1156.   In this case, you want OS/2's Boot Manager  to  be  the  primary  boot
  1157.   loader,  and  use  LILO  just  to  boot  Linux  (as the secondary boot
  1158.   loader).
  1159.  
  1160.   The  Slackware  installation  procedure  allows  you  to  install  and
  1161.   configure  LILO.  However, this method doesn't seem to be smart enough
  1162.   to handle several peculiar situations. It  might  be  easier  in  some
  1163.   cases to configure LILO by hand.
  1164.  
  1165.   In  order  to  set  up  LILO  for  your  system,  just  edit  the file
  1166.   /etc/lilo/config. Below we present an example of a LILO  configuration
  1167.   file,  where  the  Linux root partition is on /dev/hda2, and MS-DOS is
  1168.   installed on /dev/hdb1 (on the second hard drive).
  1169.  
  1170.  
  1171.        # Tell LILO to install itself as the primary boot loader on /dev/hda.
  1172.        boot = /dev/hda
  1173.        # The boot image to install; you probably shouldn't change this
  1174.        install = /etc/lilo/boot.b
  1175.        # Do some optimization. Doesn't work on all systems.
  1176.        compact
  1177.  
  1178.        # The stanza for booting Linux.
  1179.        image = /vmlinuz       # The kernel is in /vmlinuz
  1180.          label = linux        # Give it the name "linux"
  1181.          root = /dev/hda2     # Use /dev/hda2 as the root filesystem
  1182.          vga = ask            # Prompt for VGA mode
  1183.  
  1184.        # The stanza for booting MS-DOS
  1185.        other = /dev/hdb1      # This is the MS-DOS partition
  1186.          label = msdos        # Give it the name "msdos"
  1187.          table = /dev/hdb     # The partition table for the second drive
  1188.  
  1189.  
  1190.  
  1191.  
  1192.   Once you have edited the /etc/lilo/config file, run /etc/lilo/lilo  as
  1193.   root.  This  will install LILO on your drive. Note that you must rerun
  1194.   /etc/lilo/lilo anytime that you recompile your kernel (something  that
  1195.   you don't need to worry about just now, but keep it in mind).
  1196.  
  1197.   You  can  now  reboot your system from the hard drive. By default LILO
  1198.   will boot the operating system listed first in the configuration file,
  1199.   which  in  this  case  is  Linux. In order to bring up a boot menu, in
  1200.   order to select another operating system,  hold  down  shift  or  ctrl
  1201.   while the system boots; you should see a prompt such as
  1202.  
  1203.        Boot:
  1204.  
  1205.  
  1206.   Here,  enter either the name of the operating system to boot (given by
  1207.   the label line in the configuration file; in this case,  either  linux
  1208.   or msdos), or press tab to get a list.
  1209.  
  1210.   Now  let's say that you want to use LILO as the secondary boot loader;
  1211.   if you want to boot Linux from OS/2's Boot Manager, for  example.   In
  1212.   order to boot a Linux partition from OS/2 Boot Manager, unfortunately,
  1213.   you must create the partition using OS/2's FDISK  (not  Linux's),  and
  1214.   format  the  partition  as  FAT  or HPFS, so that OS/2 knows about it.
  1215.   (That's IBM for you.)
  1216.  
  1217.   In order to have LILO boot Linux  from  OS/2  BM,  you  only  want  to
  1218.   install  LILO  on  your  Linux  root filesystem (in the above example,
  1219.   /dev/hda2). In this case, your LILO config file should look  something
  1220.   like:
  1221.  
  1222.  
  1223.        boot = /dev/hda2
  1224.        install = /etc/lilo/boot.b
  1225.        compact
  1226.  
  1227.        image = /vmlinuz
  1228.          label = linux
  1229.          root = /dev/hda2
  1230.          vga = ask
  1231.  
  1232.  
  1233.  
  1234.  
  1235.   Note  the  change  in  the boot line. After running /etc/lilo/lilo you
  1236.   should be able to add the Linux partition to Boot Manager. This mecha-
  1237.   nism  should  work for boot loaders used by other operating systems as
  1238.   well.
  1239.  
  1240.  
  1241.   6.  Miscellaneous
  1242.  
  1243.   I don't like to be biased towards the Slackware release,  however,  in
  1244.   order to document multiple releases of Linux, this file would be much,
  1245.   much longer. It is simpler and more coherent  to  cover  the  specific
  1246.   instructions   for   a   single  release  of  Linux.  The  book  Linux
  1247.   Installation  and   Getting   Started   currently   includes   general
  1248.   installation  instructions  which  should  be  applicable  to  ``any''
  1249.   distribution of Linux. However, because  the  installation  procedures
  1250.   are  so  varied,  covering  them  all  would be very confusing both to
  1251.   myself and to the reader.
  1252.  
  1253.   The basic concepts in this document still hold, no matter what release
  1254.   of  Linux  you  choose.  For  example, all releases require you to run
  1255.   fdisk, and all  of  them  (to  my  knowledge)  include  some  kind  of
  1256.   installation  menu similar to the setup program.  If you choose to use
  1257.   a release of Linux other than Slackware, the READMEs and  installation
  1258.   instructions  that come with that release should be easy to understand
  1259.   in the context of the material presented here.
  1260.  
  1261.   If you would like a more complete  discussion  of  Linux  installation
  1262.   (instead  of  the  "quick"  examples  given here), read the book Linux
  1263.   Installation   and   Getting   Started,   from   sunsite.unc.edu    in
  1264.   /pub/Linux/docs/LDP.   This book includes a complete discussion of how
  1265.   to obtain and install Linux, as well  as  a  basic  UNIX  and  systems
  1266.   administration tutorial for new users.
  1267.  
  1268.   Please  mail me at mdw@sunsite.unc.edu if any part of this document is
  1269.   confusing or incorrect. I depend on feedback from readers in order  to
  1270.   maintain  this  document!  I  also like to help answer questions about
  1271.   Linux installation, if you have any.
  1272.  
  1273.   I'd like to thank Patrick Volkerding for his  work  on  the  Slackware
  1274.   distribution and assistance in preparing this document.
  1275.  
  1276.   Best of luck with your new Linux system!
  1277.  
  1278.   Cheers, mdw
  1279.  
  1280.